﻿#region 信息
// Copyright©2014 Rex Rao all rights reserved.
// File name : Mojito\Mojito.Data\OrderDish.cs
// Author : Sohobloo
// Create time : 2014/08/29 10:40
// Update time : 2014/08/29 10:40
#endregion
namespace Mojito.Data.Configuration
{
    internal partial class OrderDishConfiguration
    {
        protected override void ConfigurateExtension()
        {
            HasRequired(od => od.Order).WithMany(o => o.Dishes).HasForeignKey(od => od.OrderId);
            HasRequired(od => od.Dish).WithMany().HasForeignKey(od => od.DishId);
        }
    }
}